﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Dreamer Blog - 后台管理系统</title> 
    <!-- bootstrap 3.0.2 -->
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <!-- font Awesome -->
    <link href="/resource/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <!-- Ionicons -->
    <link href="/resource/css/ionicons.min.css" rel="stylesheet" type="text/css" />
    <!-- Theme style -->
    <link href="/resource/css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="row">
    <div class="col-md-12">
    	<h1 class="panel-heading">添加表单</h1>
        <!--breadcrumbs start -->
        <ul class="breadcrumb">
			<li><a href="/admin/dashboard/toIndex"><i class="fa fa-home"></i> 首页</a></li>
			<li class="active">添加表单</li>
		</ul>
        <!--breadcrumbs end -->
    </div>
</div>
<div class="row">
	<div class="col-lg-12">
		<section class="panel">
			<div class="panel-body">
				<form class="col s12" id="form1" th:action="@{/admin/forms/add}" onsubmit="return validateForm();" method="post">
					<div class="form-group form-control-medium">
						<label for="formName">表单名：</label>
						<input id="formName" name="formName" type="text" class="form-control">
					</div>
					<div class="form-group form-control-medium">
                           <label for="tableName">附加表名：</label>
                           <input id="tableName" name="tableName" type="text" class="form-control">
					</div>
					<div class="form-group">
						<label for="type">表单性质：</label>
                           <label class="checkbox-inline">
                               <input type="radio" name="type" id="type-yes" value="1" checked="">自定义表单
                           </label>
                           <label class="checkbox-inline">
                               <input type="radio" name="type" id="type-no" value="0">系统表单
                           </label>
					</div>
					<div class="form-btn-group-left">
		            	<button type="submit" class="btn btn-info">保存</button>
		            </div>
				</form>
			</div>
		</section>
	</div>
</div>
<script src="/resource/js/jquery.min.js" type="text/javascript"></script>
   <script type="text/javascript">
    function validateForm(){
    	
    	return true;
    }
   </script>
</body>
</html>
